package de.yellowshoes.tedx.persistence.entity;

import java.util.Date;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable( tableName = "agenda" )
public class Agenda
    {
    @DatabaseField( id = true )
    private String  title            = null;

    @DatabaseField
    private String  shortDescription = null;

    @DatabaseField
    private String  description      = null;

    @DatabaseField
    private Date    startTime        = null;

    @DatabaseField
    private Date    endTime          = null;

    @DatabaseField
    private boolean pause            = false;

    @DatabaseField( foreign = true )
    private Speaker speaker          = null;

    public Agenda()
        {
        }

    public String getTitle()
        {
        return title;
        }

    public void setTitle( String title )
        {
        this.title = title;
        }

    public String getShortDescription()
        {
        return shortDescription;
        }

    public void setShortDescription( String shortDescription )
        {
        this.shortDescription = shortDescription;
        }

    public String getDescription()
        {
        return description;
        }

    public void setDescription( String description )
        {
        this.description = description;
        }

    public Date getStartTime()
        {
        return startTime;
        }

    public void setStartTime( Date startTime )
        {
        this.startTime = startTime;
        }

    public Date getEndTime()
        {
        return endTime;
        }

    public void setEndTime( Date endTime )
        {
        this.endTime = endTime;
        }

    public boolean isPause()
        {
        return pause;
        }

    public void setPause( boolean pause )
        {
        this.pause = pause;
        }

    public Speaker getSpeaker()
        {
        return speaker;
        }

    public void setSpeaker( Speaker speaker )
        {
        this.speaker = speaker;
        }

    }
